package com.example.dto;

import com.example.entity.Dish;
import com.example.entity.DishFlavor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 菜品和菜品口味关系的数据传输对象类
 *
 * @author czx
 * @since 2022/5/1 15:17
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DishDto extends Dish {
    /**
     * 菜品所对应的口味
     */
    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;

    private Integer copies;
}
